package cn.ad.server.domain.enumration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wang wei
 */
public enum Platform {

    FALCON(1,"falcon"),
    ADVIEW(2,"adview");
	//ADVIEW(2,"adview");

    private int value;

    private String name;

    public static final Map<Integer, Platform> platformMap;

    static {
    	platformMap = new HashMap<>();
        for (Platform actionType : values()) {
        	platformMap.put(actionType.getValue(), actionType);
        }
    }

    Platform(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}
